/*
 * Created on Jul 11, 2004
 */
package dk.aiszone.lang.autosource.generatorobjects.interfaces;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * Abstract class extended by all objects in the autosource package.
 * 
 * @author <a href="mailto:ais@mail.dk">Ais</a>
 */
public abstract class GeneratorObject {

    @Override
    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(this, obj);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}